package cn.chinaunicom.dingtalk.sender.service;

import cn.chinaunicom.dingtalk.sender.entity.interactive.CardInstances;
import cn.chinaunicom.dingtalk.sender.entity.interactive.InteractiveCardVo;
import cn.hutool.json.JSONObject;

public interface IDingTalkService {


    /**
     * 发送卡片(互动高级版)
     *
     * @param cards
     * @throws Exception
     */
    String sendInteractiveCards(InteractiveCardVo cards) throws Exception;

    /**
     * 更新卡片(互动高级版)
     *
     * @param cards
     * @throws Exception
     */
    void updateInteractiveCards(InteractiveCardVo cards) throws Exception;

    JSONObject cardInstances(CardInstances instances);
}
